<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #test {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin: auto;
            width: 100px;
            height: 100px;
            background: #07daa5;
            text-align: center;
            line-height: 100px;

            box-shadow: inset 10px 10px 10px #808080,
                            -20px -20px 20px -10px pink;
        }

        html,body,#img-box {
            height: 100%;
        }
        #img-box {
            text-align: center;
        }
        /*img的居中*/
        #img-box:after {
            content: '';
            display: inline-block;
            height: 100%;
            vertical-align: middle;
        }
        img {
            vertical-align: middle;
            /*倒影*/
            -webkit-box-reflect: left 10px;
        }

        #reset {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            width: 400px;
            height: 400px;
            background: rgba(7,218,165,.4);
            box-sizing: border-box;
            /*调整div大小*/
            resize: both;
            overflow: auto;
        }
    </style>
</head>
<body>
    <div id="test">
        test
    </div>
    <div id="img-box">
        <img src="img/1.jpg" alt="">
    </div>
    <div id="reset">

    </div>
</body>
</html>
